package com.qk.ezbuy.dao;

import com.qk.ezbuy.pojo.Product;
import com.qk.ezbuy.pojo.ProductCategory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

import java.util.List;

@Mapper
@Repository
public interface ProductCategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ProductCategory record);

    //增加分类
    int insertSelective(ProductCategory record);

    ProductCategory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProductCategory record);

    int updateByPrimaryKey(ProductCategory record);

    List<ProductCategory> selectAll();

    //删除分类
    int delProductCategoryById(int id);

    //查找所有
    List<ProductCategory> selectProductCategoryAll();

    //根据type查找
    List<ProductCategory> selectProductCategoryByType(int type);

    //根据id查询分页
    ProductCategory selectProductCategoryById(int id);

}